import org.junit.jupiter.api.Test
import java.util.regex.Pattern

class Test{

    @Test
    fun test(){

    }

    @Test
    fun regexTest(){
        val test = "varchar(20)"
        val startPos = test.indexOfFirst { '(' == it }
        val commaPos = test.substring(startPos+1).indexOfFirst { ',' == it }
        val endPost = test.indexOfLast { ')' == it }
        println(test.substring(startPos+1,endPost))
    }

}